<?php 
/* SVN FILE: $Id$ */
/* Ballot Test cases generated on: 2009-09-24 11:52:01 : 1253829121*/
App::import('Model', 'Ballot');

class BallotTestCase extends CakeTestCase {
	var $Ballot = null;
	var $fixtures = array('app.ballot', 'app.user');

	function startTest() {
		$this->Ballot =& ClassRegistry::init('Ballot');
	}

	function testBallotInstance() {
		$this->assertTrue(is_a($this->Ballot, 'Ballot'));
	}

	function testBallotFind() {
		$this->Ballot->recursive = -1;
		$results = $this->Ballot->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('Ballot' => array(
			'user_id'  => 1,
			'date'  => '2009-09-24',
			'ballot_data'  => 'Lorem ipsum dolor sit amet'
		));
		$this->assertEqual($results, $expected);
	}
}
?>